package base.thread.produce_consumer;

/**
 * 生产者
 * @author 饭香
 *
 */
public class Producer implements Runnable{
	private Shop shop;//要去送货的商店
	public Producer(Shop shop){
		this.shop=shop;
	}
	public void run() {
		for(int i=0;i<100;i++){
			shop.produ();
		}
	} 

}


